var encryp = require('../../js/encryp.js')
var wxRequest = require('../../js/wxRequest.js')
var common = require('../../js/common.js')

var token = wx.getStorageSync('token')
var randomKey = wx.getStorageSync('randomKey')
var sign = wx.getStorageSync('sign')
var userId = wx.getStorageSync('id')

const lock = {
   
   getLockByEquement(simpleObject,equementId, offset){
     var lockArray;
    var param = common.packParam(randomKey, simpleObject);
    //获取锁信息
    var url = getApp().globalData.httpUrl + '/lock/getLockByEquement';
     var info = wxRequest.postRequest(url, param,token).
      then(res => {
        console.log('sdd'+res.data)
        lockArray = res.data
        return lockArray
      })
     
  }
}
module.exports = lock;